import request from '@/utils/request'

// 获取分页列表
export function page(query) {
  return request({
    url: '/health/${beanName}/page',
    method: 'get',
    params: query,
  })
}

// 获取信息
export function get(id) {
  return request({
    url: '/health/${beanName}/' + id,
    method: 'get'
  })
}

// 保存信息
export function save(data) {
  return request({
    url: '/health/${beanName}',
    method: 'post',
    data: data
  })
}


// 更新信息
export function update(data) {
  return request({
    url: '/health/${beanName}',
    method: 'put',
    data: data
  })
}


// 移除信息
export function remove(ids) {
  return request({
    url: '/health/${beanName}/batch/' + ids,
    method: 'delete'
  })
}

// 获取列表
export function list(query) {
  return request({
    url: '/health/${beanName}/list',
    method: 'get',
    params: query,
  })
}

